package com.iss.demo.dao;

import com.iss.demo.entity.SaleMoney;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;
import org.springframework.stereotype.Repository;

import java.util.List;

@Mapper
@Repository
public interface SaleMoneyDao {
    @Select("select * from salemoney")
    public List<SaleMoney> selectAll();

    @Select("select * from salemoney where s_id=#{s_id}")
    public SaleMoney selectById(Integer s_id);


    @Update("update salemoney set s_price=#{s_price} where s_id=#{s_id}")
    Integer update(SaleMoney saleMoney);
}
